home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6460 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: sourcery.han.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <31545d88@internet.dk> <600.6659T133T1177@jroger.in-berlin.de>
  4. From: "Olaf Barthel" <olsen@sourcery.han.de>
  5. Date: Thu, 28 Mar 1996 00:01:03 +0100
  6. X-NewsReader: IntuiNews 1.3a (7.9.95)
  7. Subject: Re: info on icon.library
  8. Message-ID: <13213833@sourcery.han.de>
  9.  
  10. In Article <600.6659T133T1177@jroger.in-berlin.de>, Sebastian Rittau <jroger@jroger.in-berlin.de> wrote:
  11. > In <31545d88@internet.dk> Stig Joergensen <s-t-j@internet.dk> wrote:
  12. >
  13. > >I was wondering if anybody have some docs about these 2 function is
  14. > >icon.library :
  15. >
  16. > >        -$002A GetIcon(name,icon,freelist)(A0/A1/A2)
  17. > >        -$0030 PutIcon(name,icon)(A0/A1)
  18. >
  19. > >And if so, please tell me something about the "icon" structure, tnx.
  20. >
  21. > Just wait until AT publishes the Includes & Autodocs. Olaf Barthel
  22. > said some days ago that they will be available in about two weeks
  23. > on the AT-FTP-Server.
  24.  
  25.    Well... GetIcon() and PutIcon() are kind of a different story. These
  26. entry points are considered obsolete and thus are no longer documented.
  27. GetIcon() is a more complex variant of GetDiskObject() for which you have
  28. to provide a pointer to a DiskObject structure you must have allocated
  29. before and a pointer to a FreeList structure you must have set up before.
  30. GetIcon() will read the icon data and fill in the DiskObject structure
  31. for you, recording all the single memory allocations in the FreeList
  32. structure so you can later release the memory using FreeFreeList().
  33. Setting up the FreeList is the primary problem here. PutIcon() does
  34. very much what PutDiskObject() does but it won't notify Workbench that
  35. the icon just written has changed. In any event, you don't need these
  36. two function calls. There is nothing you can gain by using them and
  37. nothing you lose if you don't use them. Workbench 2.04 through 3.1
  38. still calls these two routines to read and write volume icons, but
  39. that shouldn't concern you as this is a feature you cannot rely upon.
  40. These two function calls are more or less a legacy of the original
  41. Workbench design put into practice when Workbench used to do its
  42. object creation and management solely through icon.library.
  43.  
  44. --
  45. Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
  46.  Net: olsen@sourcery.han.de
  47.